package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbLogSummaryMapper;
import com.sdy.dcsb.biz.model.EsbLogSummary;
import com.sdy.dcsb.biz.model.EsbLogSummaryJoint;
import com.sdy.dcsb.biz.service.EsbLogSummaryService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务日志统计表，10分钟间隔 服务类实现类
 * </p>
 *
 * @author fb
 * @since 2019/12/10
 */
@Slf4j
@Service
public class EsbLogSummaryServiceImpl extends BaseServiceImpl<EsbLogSummary> implements EsbLogSummaryService {
    @Autowired
    private EsbLogSummaryMapper esbLogSummaryMapper;
    @Autowired
    private EsbLogSummaryService esbLogSummaryService;

    @Override
    public List<EsbLogSummaryJoint> selectDetailServiceUsing(String systemCode, String startTime, String endTime, String sign) {
        return esbLogSummaryMapper.selectDetailServiceUsing(systemCode, startTime, endTime, sign);
    }

    @Override
    public List<EsbLogSummaryJoint> selectEsbLogSummaries(String expid, String requestStartTime, String requestEndTime, String sign) {
        return esbLogSummaryMapper.selectEsbLogSummaries(expid, requestStartTime, requestEndTime, sign);
    }

}
